3.19 \(\int \frac{(a+b \tan ^{-1}(c x))^3}{(d+e x)^2} \, dx\)

Optimal. Leaf size=499 \[ \frac{3 i b^2 c \text{PolyLog}\left (2,1-\frac{2}{1-i c x}\right ) \left (a+b \tan ^{-1}(c x)\right )}{c^2 d^2+e^2}+\frac{3 i b^2 c \text{PolyLog}\left (2,1-\frac{2}{1+i c x}\right ) \left (a+b \tan ^{-1}(c x)\right )}{c^2 d^2+e^2}-\frac{3 i b^2 c \left (a+b \tan ^{-1}(c x)\right ) \text{PolyLog}\left (2,1-\frac{2 c (d+e x)}{(1-i c x) (c d+i e)}\right )}{c^2 d^2+e^2}-\frac{3 b^3 c \text{PolyLog}\left (3,1-\frac{2}{1-i c x}\right )}{2 \left (c^2 d^2+e^2\right )}+\frac{3 b^3 c \text{PolyLog}\left (3,1-\frac{2}{1+i c x}\right )}{2 \left (c^2 d^2+e^2\right )}+\frac{3 b^3 c \text{PolyLog}\left (3,1-\frac{2 c (d+e x)}{(1-i c x) (c d+i e)}\right )}{2 \left (c^2 d^2+e^2\right )}+\frac{i c \left (a+b \tan ^{-1}(c x)\right )^3}{c^2 d^2+e^2}+\frac{c^2 d \left (a+b \tan ^{-1}(c x)\right )^3}{e \left (c^2 d^2+e^2\right )}-\frac{3 b c \log \left (\frac{2}{1-i c x}\right ) \left (a+b \tan ^{-1}(c x)\right )^2}{c^2 d^2+e^2}+\frac{3 b c \log \left (\frac{2}{1+i c x}\right ) \left (a+b \tan ^{-1}(c x)\right )^2}{c^2 d^2+e^2}+\frac{3 b c \left (a+b \tan ^{-1}(c x)\right )^2 \log \left (\frac{2 c (d+e x)}{(1-i c x) (c d+i e)}\right )}{c^2 d^2+e^2}-\frac{\left (a+b \tan ^{-1}(c x)\right )^3}{e (d+e x)} \]

[Out]

(I*c*(a + b*ArcTan[c*x])^3)/(c^2*d^2 + e^2) + (c^2*d*(a + b*ArcTan[c*x])^3)/(e*(c^2*d^2 + e^2)) - (a + b*ArcTa
n[c*x])^3/(e*(d + e*x)) - (3*b*c*(a + b*ArcTan[c*x])^2*Log[2/(1 - I*c*x)])/(c^2*d^2 + e^2) + (3*b*c*(a + b*Arc
Tan[c*x])^2*Log[2/(1 + I*c*x)])/(c^2*d^2 + e^2) + (3*b*c*(a + b*ArcTan[c*x])^2*Log[(2*c*(d + e*x))/((c*d + I*e
)*(1 - I*c*x))])/(c^2*d^2 + e^2) + ((3*I)*b^2*c*(a + b*ArcTan[c*x])*PolyLog[2, 1 - 2/(1 - I*c*x)])/(c^2*d^2 +
e^2) + ((3*I)*b^2*c*(a + b*ArcTan[c*x])*PolyLog[2, 1 - 2/(1 + I*c*x)])/(c^2*d^2 + e^2) - ((3*I)*b^2*c*(a + b*A
rcTan[c*x])*PolyLog[2, 1 - (2*c*(d + e*x))/((c*d + I*e)*(1 - I*c*x))])/(c^2*d^2 + e^2) - (3*b^3*c*PolyLog[3, 1
 - 2/(1 - I*c*x)])/(2*(c^2*d^2 + e^2)) + (3*b^3*c*PolyLog[3, 1 - 2/(1 + I*c*x)])/(2*(c^2*d^2 + e^2)) + (3*b^3*
c*PolyLog[3, 1 - (2*c*(d + e*x))/((c*d + I*e)*(1 - I*c*x))])/(2*(c^2*d^2 + e^2))

________________________________________________________________________________________

Rubi [A]  time = 0.53011, antiderivative size = 499, normalized size of antiderivative = 1., number of steps used = 10, number of rules used = 8, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.444, Rules used = {4864, 4858, 4984, 4884, 4920, 4854, 4994, 6610} \[ \frac{3 i b^2 c \text{PolyLog}\left (2,1-\frac{2}{1-i c x}\right ) \left (a+b \tan ^{-1}(c x)\right )}{c^2 d^2+e^2}+\frac{3 i b^2 c \text{PolyLog}\left (2,1-\frac{2}{1+i c x}\right ) \left (a+b \tan ^{-1}(c x)\right )}{c^2 d^2+e^2}-\frac{3 i b^2 c \left (a+b \tan ^{-1}(c x)\right ) \text{PolyLog}\left (2,1-\frac{2 c (d+e x)}{(1-i c x) (c d+i e)}\right )}{c^2 d^2+e^2}-\frac{3 b^3 c \text{PolyLog}\left (3,1-\frac{2}{1-i c x}\right )}{2 \left (c^2 d^2+e^2\right )}+\frac{3 b^3 c \text{PolyLog}\left (3,1-\frac{2}{1+i c x}\right )}{2 \left (c^2 d^2+e^2\right )}+\frac{3 b^3 c \text{PolyLog}\left (3,1-\frac{2 c (d+e x)}{(1-i c x) (c d+i e)}\right )}{2 \left (c^2 d^2+e^2\right )}+\frac{i c \left (a+b \tan ^{-1}(c x)\right )^3}{c^2 d^2+e^2}+\frac{c^2 d \left (a+b \tan ^{-1}(c x)\right )^3}{e \left (c^2 d^2+e^2\right )}-\frac{3 b c \log \left (\frac{2}{1-i c x}\right ) \left (a+b \tan ^{-1}(c x)\right )^2}{c^2 d^2+e^2}+\frac{3 b c \log \left (\frac{2}{1+i c x}\right ) \left (a+b \tan ^{-1}(c x)\right )^2}{c^2 d^2+e^2}+\frac{3 b c \left (a+b \tan ^{-1}(c x)\right )^2 \log \left (\frac{2 c (d+e x)}{(1-i c x) (c d+i e)}\right )}{c^2 d^2+e^2}-\frac{\left (a+b \tan ^{-1}(c x)\right )^3}{e (d+e x)} \]

Antiderivative was successfully verified.

[In]

Int[(a + b*ArcTan[c*x])^3/(d + e*x)^2,x]

[Out]

(I*c*(a + b*ArcTan[c*x])^3)/(c^2*d^2 + e^2) + (c^2*d*(a + b*ArcTan[c*x])^3)/(e*(c^2*d^2 + e^2)) - (a + b*ArcTa
n[c*x])^3/(e*(d + e*x)) - (3*b*c*(a + b*ArcTan[c*x])^2*Log[2/(1 - I*c*x)])/(c^2*d^2 + e^2) + (3*b*c*(a + b*Arc
Tan[c*x])^2*Log[2/(1 + I*c*x)])/(c^2*d^2 + e^2) + (3*b*c*(a + b*ArcTan[c*x])^2*Log[(2*c*(d + e*x))/((c*d + I*e
)*(1 - I*c*x))])/(c^2*d^2 + e^2) + ((3*I)*b^2*c*(a + b*ArcTan[c*x])*PolyLog[2, 1 - 2/(1 - I*c*x)])/(c^2*d^2 +
e^2) + ((3*I)*b^2*c*(a + b*ArcTan[c*x])*PolyLog[2, 1 - 2/(1 + I*c*x)])/(c^2*d^2 + e^2) - ((3*I)*b^2*c*(a + b*A
rcTan[c*x])*PolyLog[2, 1 - (2*c*(d + e*x))/((c*d + I*e)*(1 - I*c*x))])/(c^2*d^2 + e^2) - (3*b^3*c*PolyLog[3, 1
 - 2/(1 - I*c*x)])/(2*(c^2*d^2 + e^2)) + (3*b^3*c*PolyLog[3, 1 - 2/(1 + I*c*x)])/(2*(c^2*d^2 + e^2)) + (3*b^3*
c*PolyLog[3, 1 - (2*c*(d + e*x))/((c*d + I*e)*(1 - I*c*x))])/(2*(c^2*d^2 + e^2))

Rule 4864

Int[((a_.) + ArcTan[(c_.)*(x_)]*(b_.))^(p_)*((d_) + (e_.)*(x_))^(q_.), x_Symbol] :> Simp[((d + e*x)^(q + 1)*(a
 + b*ArcTan[c*x])^p)/(e*(q + 1)), x] - Dist[(b*c*p)/(e*(q + 1)), Int[ExpandIntegrand[(a + b*ArcTan[c*x])^(p -
1), (d + e*x)^(q + 1)/(1 + c^2*x^2), x], x], x] /; FreeQ[{a, b, c, d, e}, x] && IGtQ[p, 1] && IntegerQ[q] && N
eQ[q, -1]

Rule 4858

Int[((a_.) + ArcTan[(c_.)*(x_)]*(b_.))^2/((d_) + (e_.)*(x_)), x_Symbol] :> -Simp[((a + b*ArcTan[c*x])^2*Log[2/
(1 - I*c*x)])/e, x] + (Simp[((a + b*ArcTan[c*x])^2*Log[(2*c*(d + e*x))/((c*d + I*e)*(1 - I*c*x))])/e, x] + Sim
p[(I*b*(a + b*ArcTan[c*x])*PolyLog[2, 1 - 2/(1 - I*c*x)])/e, x] - Simp[(I*b*(a + b*ArcTan[c*x])*PolyLog[2, 1 -
 (2*c*(d + e*x))/((c*d + I*e)*(1 - I*c*x))])/e, x] - Simp[(b^2*PolyLog[3, 1 - 2/(1 - I*c*x)])/(2*e), x] + Simp
[(b^2*PolyLog[3, 1 - (2*c*(d + e*x))/((c*d + I*e)*(1 - I*c*x))])/(2*e), x]) /; FreeQ[{a, b, c, d, e}, x] && Ne
Q[c^2*d^2 + e^2, 0]

Rule 4984

Int[(((a_.) + ArcTan[(c_.)*(x_)]*(b_.))^(p_.)*((f_) + (g_.)*(x_))^(m_.))/((d_) + (e_.)*(x_)^2), x_Symbol] :> I
nt[ExpandIntegrand[(a + b*ArcTan[c*x])^p/(d + e*x^2), (f + g*x)^m, x], x] /; FreeQ[{a, b, c, d, e, f, g}, x] &
& IGtQ[p, 0] && EqQ[e, c^2*d] && IGtQ[m, 0]

Rule 4884

Int[((a_.) + ArcTan[(c_.)*(x_)]*(b_.))^(p_.)/((d_) + (e_.)*(x_)^2), x_Symbol] :> Simp[(a + b*ArcTan[c*x])^(p +
 1)/(b*c*d*(p + 1)), x] /; FreeQ[{a, b, c, d, e, p}, x] && EqQ[e, c^2*d] && NeQ[p, -1]

Rule 4920

Int[(((a_.) + ArcTan[(c_.)*(x_)]*(b_.))^(p_.)*(x_))/((d_) + (e_.)*(x_)^2), x_Symbol] :> -Simp[(I*(a + b*ArcTan
[c*x])^(p + 1))/(b*e*(p + 1)), x] - Dist[1/(c*d), Int[(a + b*ArcTan[c*x])^p/(I - c*x), x], x] /; FreeQ[{a, b,
c, d, e}, x] && EqQ[e, c^2*d] && IGtQ[p, 0]

Rule 4854

Int[((a_.) + ArcTan[(c_.)*(x_)]*(b_.))^(p_.)/((d_) + (e_.)*(x_)), x_Symbol] :> -Simp[((a + b*ArcTan[c*x])^p*Lo
g[2/(1 + (e*x)/d)])/e, x] + Dist[(b*c*p)/e, Int[((a + b*ArcTan[c*x])^(p - 1)*Log[2/(1 + (e*x)/d)])/(1 + c^2*x^
2), x], x] /; FreeQ[{a, b, c, d, e}, x] && IGtQ[p, 0] && EqQ[c^2*d^2 + e^2, 0]

Rule 4994

Int[(Log[u_]*((a_.) + ArcTan[(c_.)*(x_)]*(b_.))^(p_.))/((d_) + (e_.)*(x_)^2), x_Symbol] :> -Simp[(I*(a + b*Arc
Tan[c*x])^p*PolyLog[2, 1 - u])/(2*c*d), x] + Dist[(b*p*I)/2, Int[((a + b*ArcTan[c*x])^(p - 1)*PolyLog[2, 1 - u
])/(d + e*x^2), x], x] /; FreeQ[{a, b, c, d, e}, x] && IGtQ[p, 0] && EqQ[e, c^2*d] && EqQ[(1 - u)^2 - (1 - (2*
I)/(I - c*x))^2, 0]

Rule 6610

Int[(u_)*PolyLog[n_, v_], x_Symbol] :> With[{w = DerivativeDivides[v, u*v, x]}, Simp[w*PolyLog[n + 1, v], x] /
;  !FalseQ[w]] /; FreeQ[n, x]

Rubi steps

\begin{align*} \int \frac{\left (a+b \tan ^{-1}(c x)\right )^3}{(d+e x)^2} \, dx &=-\frac{\left (a+b \tan ^{-1}(c x)\right )^3}{e (d+e x)}+\frac{(3 b c) \int \left (\frac{e^2 \left (a+b \tan ^{-1}(c x)\right )^2}{\left (c^2 d^2+e^2\right ) (d+e x)}+\frac{c^2 (d-e x) \left (a+b \tan ^{-1}(c x)\right )^2}{\left (c^2 d^2+e^2\right ) \left (1+c^2 x^2\right )}\right ) \, dx}{e}\\ &=-\frac{\left (a+b \tan ^{-1}(c x)\right )^3}{e (d+e x)}+\frac{\left (3 b c^3\right ) \int \frac{(d-e x) \left (a+b \tan ^{-1}(c x)\right )^2}{1+c^2 x^2} \, dx}{e \left (c^2 d^2+e^2\right )}+\frac{(3 b c e) \int \frac{\left (a+b \tan ^{-1}(c x)\right )^2}{d+e x} \, dx}{c^2 d^2+e^2}\\ &=-\frac{\left (a+b \tan ^{-1}(c x)\right )^3}{e (d+e x)}-\frac{3 b c \left (a+b \tan ^{-1}(c x)\right )^2 \log \left (\frac{2}{1-i c x}\right )}{c^2 d^2+e^2}+\frac{3 b c \left (a+b \tan ^{-1}(c x)\right )^2 \log \left (\frac{2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{c^2 d^2+e^2}+\frac{3 i b^2 c \left (a+b \tan ^{-1}(c x)\right ) \text{Li}_2\left (1-\frac{2}{1-i c x}\right )}{c^2 d^2+e^2}-\frac{3 i b^2 c \left (a+b \tan ^{-1}(c x)\right ) \text{Li}_2\left (1-\frac{2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{c^2 d^2+e^2}-\frac{3 b^3 c \text{Li}_3\left (1-\frac{2}{1-i c x}\right )}{2 \left (c^2 d^2+e^2\right )}+\frac{3 b^3 c \text{Li}_3\left (1-\frac{2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{2 \left (c^2 d^2+e^2\right )}+\frac{\left (3 b c^3\right ) \int \left (\frac{d \left (a+b \tan ^{-1}(c x)\right )^2}{1+c^2 x^2}-\frac{e x \left (a+b \tan ^{-1}(c x)\right )^2}{1+c^2 x^2}\right ) \, dx}{e \left (c^2 d^2+e^2\right )}\\ &=-\frac{\left (a+b \tan ^{-1}(c x)\right )^3}{e (d+e x)}-\frac{3 b c \left (a+b \tan ^{-1}(c x)\right )^2 \log \left (\frac{2}{1-i c x}\right )}{c^2 d^2+e^2}+\frac{3 b c \left (a+b \tan ^{-1}(c x)\right )^2 \log \left (\frac{2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{c^2 d^2+e^2}+\frac{3 i b^2 c \left (a+b \tan ^{-1}(c x)\right ) \text{Li}_2\left (1-\frac{2}{1-i c x}\right )}{c^2 d^2+e^2}-\frac{3 i b^2 c \left (a+b \tan ^{-1}(c x)\right ) \text{Li}_2\left (1-\frac{2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{c^2 d^2+e^2}-\frac{3 b^3 c \text{Li}_3\left (1-\frac{2}{1-i c x}\right )}{2 \left (c^2 d^2+e^2\right )}+\frac{3 b^3 c \text{Li}_3\left (1-\frac{2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{2 \left (c^2 d^2+e^2\right )}-\frac{\left (3 b c^3\right ) \int \frac{x \left (a+b \tan ^{-1}(c x)\right )^2}{1+c^2 x^2} \, dx}{c^2 d^2+e^2}+\frac{\left (3 b c^3 d\right ) \int \frac{\left (a+b \tan ^{-1}(c x)\right )^2}{1+c^2 x^2} \, dx}{e \left (c^2 d^2+e^2\right )}\\ &=\frac{i c \left (a+b \tan ^{-1}(c x)\right )^3}{c^2 d^2+e^2}+\frac{c^2 d \left (a+b \tan ^{-1}(c x)\right )^3}{e \left (c^2 d^2+e^2\right )}-\frac{\left (a+b \tan ^{-1}(c x)\right )^3}{e (d+e x)}-\frac{3 b c \left (a+b \tan ^{-1}(c x)\right )^2 \log \left (\frac{2}{1-i c x}\right )}{c^2 d^2+e^2}+\frac{3 b c \left (a+b \tan ^{-1}(c x)\right )^2 \log \left (\frac{2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{c^2 d^2+e^2}+\frac{3 i b^2 c \left (a+b \tan ^{-1}(c x)\right ) \text{Li}_2\left (1-\frac{2}{1-i c x}\right )}{c^2 d^2+e^2}-\frac{3 i b^2 c \left (a+b \tan ^{-1}(c x)\right ) \text{Li}_2\left (1-\frac{2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{c^2 d^2+e^2}-\frac{3 b^3 c \text{Li}_3\left (1-\frac{2}{1-i c x}\right )}{2 \left (c^2 d^2+e^2\right )}+\frac{3 b^3 c \text{Li}_3\left (1-\frac{2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{2 \left (c^2 d^2+e^2\right )}+\frac{\left (3 b c^2\right ) \int \frac{\left (a+b \tan ^{-1}(c x)\right )^2}{i-c x} \, dx}{c^2 d^2+e^2}\\ &=\frac{i c \left (a+b \tan ^{-1}(c x)\right )^3}{c^2 d^2+e^2}+\frac{c^2 d \left (a+b \tan ^{-1}(c x)\right )^3}{e \left (c^2 d^2+e^2\right )}-\frac{\left (a+b \tan ^{-1}(c x)\right )^3}{e (d+e x)}-\frac{3 b c \left (a+b \tan ^{-1}(c x)\right )^2 \log \left (\frac{2}{1-i c x}\right )}{c^2 d^2+e^2}+\frac{3 b c \left (a+b \tan ^{-1}(c x)\right )^2 \log \left (\frac{2}{1+i c x}\right )}{c^2 d^2+e^2}+\frac{3 b c \left (a+b \tan ^{-1}(c x)\right )^2 \log \left (\frac{2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{c^2 d^2+e^2}+\frac{3 i b^2 c \left (a+b \tan ^{-1}(c x)\right ) \text{Li}_2\left (1-\frac{2}{1-i c x}\right )}{c^2 d^2+e^2}-\frac{3 i b^2 c \left (a+b \tan ^{-1}(c x)\right ) \text{Li}_2\left (1-\frac{2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{c^2 d^2+e^2}-\frac{3 b^3 c \text{Li}_3\left (1-\frac{2}{1-i c x}\right )}{2 \left (c^2 d^2+e^2\right )}+\frac{3 b^3 c \text{Li}_3\left (1-\frac{2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{2 \left (c^2 d^2+e^2\right )}-\frac{\left (6 b^2 c^2\right ) \int \frac{\left (a+b \tan ^{-1}(c x)\right ) \log \left (\frac{2}{1+i c x}\right )}{1+c^2 x^2} \, dx}{c^2 d^2+e^2}\\ &=\frac{i c \left (a+b \tan ^{-1}(c x)\right )^3}{c^2 d^2+e^2}+\frac{c^2 d \left (a+b \tan ^{-1}(c x)\right )^3}{e \left (c^2 d^2+e^2\right )}-\frac{\left (a+b \tan ^{-1}(c x)\right )^3}{e (d+e x)}-\frac{3 b c \left (a+b \tan ^{-1}(c x)\right )^2 \log \left (\frac{2}{1-i c x}\right )}{c^2 d^2+e^2}+\frac{3 b c \left (a+b \tan ^{-1}(c x)\right )^2 \log \left (\frac{2}{1+i c x}\right )}{c^2 d^2+e^2}+\frac{3 b c \left (a+b \tan ^{-1}(c x)\right )^2 \log \left (\frac{2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{c^2 d^2+e^2}+\frac{3 i b^2 c \left (a+b \tan ^{-1}(c x)\right ) \text{Li}_2\left (1-\frac{2}{1-i c x}\right )}{c^2 d^2+e^2}+\frac{3 i b^2 c \left (a+b \tan ^{-1}(c x)\right ) \text{Li}_2\left (1-\frac{2}{1+i c x}\right )}{c^2 d^2+e^2}-\frac{3 i b^2 c \left (a+b \tan ^{-1}(c x)\right ) \text{Li}_2\left (1-\frac{2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{c^2 d^2+e^2}-\frac{3 b^3 c \text{Li}_3\left (1-\frac{2}{1-i c x}\right )}{2 \left (c^2 d^2+e^2\right )}+\frac{3 b^3 c \text{Li}_3\left (1-\frac{2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{2 \left (c^2 d^2+e^2\right )}-\frac{\left (3 i b^3 c^2\right ) \int \frac{\text{Li}_2\left (1-\frac{2}{1+i c x}\right )}{1+c^2 x^2} \, dx}{c^2 d^2+e^2}\\ &=\frac{i c \left (a+b \tan ^{-1}(c x)\right )^3}{c^2 d^2+e^2}+\frac{c^2 d \left (a+b \tan ^{-1}(c x)\right )^3}{e \left (c^2 d^2+e^2\right )}-\frac{\left (a+b \tan ^{-1}(c x)\right )^3}{e (d+e x)}-\frac{3 b c \left (a+b \tan ^{-1}(c x)\right )^2 \log \left (\frac{2}{1-i c x}\right )}{c^2 d^2+e^2}+\frac{3 b c \left (a+b \tan ^{-1}(c x)\right )^2 \log \left (\frac{2}{1+i c x}\right )}{c^2 d^2+e^2}+\frac{3 b c \left (a+b \tan ^{-1}(c x)\right )^2 \log \left (\frac{2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{c^2 d^2+e^2}+\frac{3 i b^2 c \left (a+b \tan ^{-1}(c x)\right ) \text{Li}_2\left (1-\frac{2}{1-i c x}\right )}{c^2 d^2+e^2}+\frac{3 i b^2 c \left (a+b \tan ^{-1}(c x)\right ) \text{Li}_2\left (1-\frac{2}{1+i c x}\right )}{c^2 d^2+e^2}-\frac{3 i b^2 c \left (a+b \tan ^{-1}(c x)\right ) \text{Li}_2\left (1-\frac{2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{c^2 d^2+e^2}-\frac{3 b^3 c \text{Li}_3\left (1-\frac{2}{1-i c x}\right )}{2 \left (c^2 d^2+e^2\right )}+\frac{3 b^3 c \text{Li}_3\left (1-\frac{2}{1+i c x}\right )}{2 \left (c^2 d^2+e^2\right )}+\frac{3 b^3 c \text{Li}_3\left (1-\frac{2 c (d+e x)}{(c d+i e) (1-i c x)}\right )}{2 \left (c^2 d^2+e^2\right )}\\ \end{align*}

Mathematica [F]  time = 123.733, size = 0, normalized size = 0. \[ \int \frac{\left (a+b \tan ^{-1}(c x)\right )^3}{(d+e x)^2} \, dx \]

Verification is Not applicable to the result.

[In]

Integrate[(a + b*ArcTan[c*x])^3/(d + e*x)^2,x]

[Out]

Integrate[(a + b*ArcTan[c*x])^3/(d + e*x)^2, x]

________________________________________________________________________________________

Maple [C]  time = 0.774, size = 2960, normalized size = 5.9 \begin{align*} \text{output too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+b*arctan(c*x))^3/(e*x+d)^2,x)

[Out]

-3/2*I*c*b^3/(c^2*d^2+e^2)*arctan(c*x)^2*Pi*csgn(I*(-I*(1+I*c*x)^2/(c^2*x^2+1)*e+c*d*(1+I*c*x)^2/(c^2*x^2+1)+I
*e+d*c))*csgn(I*(-I*(1+I*c*x)^2/(c^2*x^2+1)*e+c*d*(1+I*c*x)^2/(c^2*x^2+1)+I*e+d*c)/((1+I*c*x)^2/(c^2*x^2+1)+1)
)^2-3*I*c^2*b^3/(c^2*d^2+e^2)*d/(d*c-I*e)*arctan(c*x)*polylog(2,(I*e-d*c)/(d*c+I*e)*(1+I*c*x)^2/(c^2*x^2+1))-3
*I*c*b^3*e*arctan(c*x)*polylog(2,(I*e-d*c)/(d*c+I*e)*(1+I*c*x)^2/(c^2*x^2+1))/(c^2*d^2+e^2)/(e+I*d*c)-3/2*I*c*
b^3/(c^2*d^2+e^2)*arctan(c*x)^2*Pi*csgn(I/((1+I*c*x)^2/(c^2*x^2+1)+1))*csgn(I*(-I*(1+I*c*x)^2/(c^2*x^2+1)*e+c*
d*(1+I*c*x)^2/(c^2*x^2+1)+I*e+d*c)/((1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2/(c^2*x^2+1)+1))-3/4*I*c*b^3/(c^2*d^2+e^2)*arctan(c*x)^2*Pi*csgn(I/((1+I*c*x
)^2/(c^2*x^2+1)+1)^2)*csgn(I*(1+I*c*x)^2/(c^2*x^2+1))*csgn(I*(1+I*c*x)^2/(c^2*x^2+1)/((1+I*c*x)^2/(c^2*x^2+1)+
1)^2)+3*c*b^3*arctan(c*x)^2/(c^2*d^2+e^2)*ln(c*e*x+c*d)

________________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \frac{3}{2} \,{\left ({\left (\frac{2 \, c d \arctan \left (c x\right )}{c^{2} d^{2} e + e^{3}} - \frac{\log \left (c^{2} x^{2} + 1\right )}{c^{2} d^{2} + e^{2}} + \frac{2 \, \log \left (e x + d\right )}{c^{2} d^{2} + e^{2}}\right )} c - \frac{2 \, \arctan \left (c x\right )}{e^{2} x + d e}\right )} a^{2} b - \frac{a^{3}}{e^{2} x + d e} - \frac{\frac{15}{2} \, b^{3} \arctan \left (c x\right )^{3} - \frac{21}{8} \, b^{3} \arctan \left (c x\right ) \log \left (c^{2} x^{2} + 1\right )^{2} -{\left (e^{2} x + d e\right )} \int \frac{196 \,{\left (b^{3} c^{2} e x^{2} + b^{3} e\right )} \arctan \left (c x\right )^{3} + 12 \,{\left (64 \, a b^{2} c^{2} e x^{2} + 15 \, b^{3} c e x + 15 \, b^{3} c d + 64 \, a b^{2} e\right )} \arctan \left (c x\right )^{2} - 84 \,{\left (b^{3} c^{2} e x^{2} + b^{3} c^{2} d x\right )} \arctan \left (c x\right ) \log \left (c^{2} x^{2} + 1\right ) - 21 \,{\left (b^{3} c e x + b^{3} c d -{\left (b^{3} c^{2} e x^{2} + b^{3} e\right )} \arctan \left (c x\right )\right )} \log \left (c^{2} x^{2} + 1\right )^{2}}{8 \,{\left (c^{2} e^{3} x^{4} + 2 \, c^{2} d e^{2} x^{3} + 2 \, d e^{2} x + d^{2} e +{\left (c^{2} d^{2} e + e^{3}\right )} x^{2}\right )}}\,{d x}}{32 \,{\left (e^{2} x + d e\right )}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*arctan(c*x))^3/(e*x+d)^2,x, algorithm="maxima")

[Out]

3/2*((2*c*d*arctan(c*x)/(c^2*d^2*e + e^3) - log(c^2*x^2 + 1)/(c^2*d^2 + e^2) + 2*log(e*x + d)/(c^2*d^2 + e^2))
*c - 2*arctan(c*x)/(e^2*x + d*e))*a^2*b - a^3/(e^2*x + d*e) - 1/32*(4*b^3*arctan(c*x)^3 - 3*b^3*arctan(c*x)*lo
g(c^2*x^2 + 1)^2 - 32*(e^2*x + d*e)*integrate(1/32*(28*(b^3*c^2*e*x^2 + b^3*e)*arctan(c*x)^3 + 12*(8*a*b^2*c^2
*e*x^2 + b^3*c*e*x + b^3*c*d + 8*a*b^2*e)*arctan(c*x)^2 - 12*(b^3*c^2*e*x^2 + b^3*c^2*d*x)*arctan(c*x)*log(c^2
*x^2 + 1) - 3*(b^3*c*e*x + b^3*c*d - (b^3*c^2*e*x^2 + b^3*e)*arctan(c*x))*log(c^2*x^2 + 1)^2)/(c^2*e^3*x^4 + 2
*c^2*d*e^2*x^3 + 2*d*e^2*x + d^2*e + (c^2*d^2*e + e^3)*x^2), x))/(e^2*x + d*e)

________________________________________________________________________________________

Fricas [F]  time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{b^{3} \arctan \left (c x\right )^{3} + 3 \, a b^{2} \arctan \left (c x\right )^{2} + 3 \, a^{2} b \arctan \left (c x\right ) + a^{3}}{e^{2} x^{2} + 2 \, d e x + d^{2}}, x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*arctan(c*x))^3/(e*x+d)^2,x, algorithm="fricas")

[Out]

integral((b^3*arctan(c*x)^3 + 3*a*b^2*arctan(c*x)^2 + 3*a^2*b*arctan(c*x) + a^3)/(e^2*x^2 + 2*d*e*x + d^2), x)

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (a + b \operatorname{atan}{\left (c x \right )}\right )^{3}}{\left (d + e x\right )^{2}}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*atan(c*x))**3/(e*x+d)**2,x)

[Out]

Integral((a + b*atan(c*x))**3/(d + e*x)**2, x)

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (b \arctan \left (c x\right ) + a\right )}^{3}}{{\left (e x + d\right )}^{2}}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*arctan(c*x))^3/(e*x+d)^2,x, algorithm="giac")

[Out]

integrate((b*arctan(c*x) + a)^3/(e*x + d)^2, x)